﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace EFCore.Entity
{
    /// <summary>
    /// 角色权限表
    /// </summary>
	[Serializable]
    [Table("RolePermission")]
    public partial class RolePermission
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required]
        [DisplayName("Id")]
        public int Id { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [Required]
        [DisplayName("角色ID")]
        public int RoleId { get; set; }

        /// <summary>
        /// 权限ID
        /// </summary>
        [Required]
        [DisplayName("权限ID")]
        public int PermissionId { get; set; }


    }
}
